
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array,
      value: []
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    loginStatus: false,
    themeCode:''
  },
  lifetimes: {
    attached() {
      //从本地获取当前选择的城市编码
      this.setData({
        themeCode: wx.getStorageSync('themeCode')
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    //打开更多的问题页面
    onOpenPage() {
      wx.navigateTo({ url: '../../pages/question/list/list' })
    },
    onOpenServer() {
      wx.openCustomerServiceChat(
        {
          corpId: 'ww0e4fff13b261a34f',
          extInfo: {
            url: wx.getStorageSync('serviceUrl')
          },
          success: (res: any) => {
            console.log('成功', res)
          },
          fail: (res: any) => {
            console.log('失败', res)
          }
        }
      )
    }
  }
})